﻿<UserControl x:Class="LiSAClient.WpfClient.View.Frame.Menus.DetachedWindowMenu"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             mc:Ignorable="d"  Padding="0,5">
    <Grid Visibility="{Binding HideMenus, Converter={StaticResource InvertedBooleanToVisibilityConverter}}">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="Auto"/>
        </Grid.ColumnDefinitions>

        <StackPanel Grid.Column="1" Orientation="Horizontal">
            <Button Content="Close" Click="CloseButtonClick" Style="{StaticResource TopMenu2ButtonStyle}" Visibility="{Binding CloseWindowItem.IsVisible, Converter={StaticResource boolToVisibilityConverter}}"/>
            <Button Content="Save and close" Command="{Binding CommitAndCloseWindowItem.ActionCommand}" Style="{StaticResource TopMenu2ButtonStyle}" Visibility="{Binding CommitAndCloseWindowItem.IsVisible, Converter={StaticResource boolToVisibilityConverter}}"/>
             </StackPanel>
    </Grid>
</UserControl>